﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class NPc1 : NPC
    {
        private string a;

        public string A
        {
            get { return this.a; }
            set { this.a = value; }
        }
        public NPc1(string name, NPCType type, string a) : base(name, type)
        {
            this.a = a;
        }
        public override void Speak()
        {
            Console.WriteLine("{0}:出没{1}",this.Name,this.a  );
        }
    }
}
